
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

/* 整体布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

/* 左侧主要内容 */
.main-content {
    flex: 3;

}

/* 右侧边栏 */
.sidebar {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

/* 视频播放器 */
#video-player {
    width: 100%;
    height: 500px;
    position: relative;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;

}

.video{
    width: 100%;
    height: 500px;
}

/* 视频信息 */
.video-info {
    margin-bottom: 20px;
}
.video-title {
    font-size: 22px;
    color: #18191C;
    margin-bottom: 12px;
}
.video-meta {
    color: #9499A0;
    font-size: 14px;
    margin-bottom: 10px;
}
.video-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #F6F7F8;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 12px;
}

/* 弹幕控制 */
.danmu-control {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}
.danmu-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}
.danmu-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #E3E5E7;
    border-radius: 4px;
}
.send-btn {
    background: #00AEEC;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* 互动按钮 */
.action-buttons {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
    margin-left: 30px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #61666D;
    cursor: pointer;
}
.action-btn.active {
    color: #00AEEC;
}

/* 作者信息 */
.author-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.author-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.related-video {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 20px;
}
.related-thumb {
    width: 320px;
    height: 151px;
    border-radius: 4px;
    background: #eee;
}
.re-video-message{
    margin-left: 20px;
    font-weight: lighter;
}

.video-tags{
    margin-top: 20px;
}

.danmu {
    position: absolute;
    color: #fff;
    font-size: 24px;
    white-space: nowrap; /* 禁止换行 */
    animation: danmuMove 5s linear;
}

/* 控制面板样式 */
.control-panel {
    padding: 20px;
    background: #f5f5f5;
    display: flex;
    gap: 10px;
}
